package com.example.modulemine.view;


import android.os.Bundle;
import android.view.View;
import android.widget.EditText;



import com.alibaba.android.arouter.facade.annotation.Route;
import com.example.baselibs.base.activity.BaseToolBarActivity;
import com.example.baselibs.router.path.ModuleMinePath;
import com.example.modulemine.R;
import com.example.modulemine.R2;

import butterknife.BindView;
import butterknife.OnClick;

@Route(path = ModuleMinePath.PATH_LOGIN)
public class LoginActivity extends BaseToolBarActivity {
    @BindView(R2.id.et_user_id)
    EditText userId;
    @BindView(R2.id.et_pw)
    EditText userPassword;

    @OnClick({R2.id.btn_login, R2.id.tv_register, R2.id.tv_forget})
    public void onLoginClick(View view) {
        if (view.getId() == R.id.btn_login) {//登录

        } else if (view.getId() == R.id.tv_register) {//注册
            toActivity(ModuleMinePath.PATH_REGISTER);
        } else if (view.getId() == R.id.tv_forget) {//忘记密码
            toActivity(ModuleMinePath.PATH_FORGET);
        }
    }


    @Override
    public String setTitle() {
        return "登录";
    }

    @Override
    public int getLayoutRes() {
        return R.layout.activity_login;
    }

    @Override
    public void initData(Bundle savedInstanceState) {

    }
}
